//
//  ICMBalanceInfoView.h
//  ICrEAM
//
//  Created by kuroro on 16/11/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextFeildView.h"
#import "ICMTitleTextView.h"
#import "ICMTitleSubTitleView.h"
#import "ICMBalanceBasicInfoModel.h"

@protocol ICMBalanceInfoViewDelegate <NSObject>

@optional

- (void)clickMemberBtn;
- (void)clickVerificationBtn;

@end

@interface ICMBalanceInfoView : UIView

@property (nonatomic,strong) ICMTitleTextFeildView *cardNoView;              //会员卡号
@property (nonatomic,strong) ICMTitleTextFeildView *withholdIntegralView;    //预扣积分
@property (nonatomic,strong) ICMTitleTextFeildView *exchangeAmountView;      //兑换金额
@property (nonatomic,strong) ICMTitleTextFeildView *memberIDView;            //会员编号
@property (nonatomic,strong) ICMTitleTextFeildView *SSTIntegralAmountView;   //可用积分金额（经销商）
@property (nonatomic,strong) ICMTitleTextFeildView *VWIntegralAmountView;    //可用积分金额（大众一家）
@property (nonatomic,strong) ICMTitleTextFeildView *VWIntegralView;          //可用积分（大众一家）
@property (nonatomic,strong) ICMTitleTextFeildView *barcodeView;             //实物卡条形码
@property (nonatomic,strong) ICMTitleTextFeildView *labourHourIntegralView;  //工时抵用金额
@property (nonatomic,strong) ICMTitleTextFeildView *VWUseIntegralView;       //本次使用积分金额
@property (nonatomic,strong) ICMTitleTextFeildView *verificationView;        //验证码
@property (nonatomic,strong) ICMTitleTextFeildView *SSTIntegralView;         //可用积分（经销商）
@property (nonatomic,strong) ICMTitleTextFeildView *partIntegralView;        //材料抵用积分金额
@property (nonatomic,strong) ICMTitleSubTitleView *nameView;                 //付费方名称
@property (nonatomic,strong) ICMTitleSubTitleView *labourAccounts;           //应收工时费
@property (nonatomic,strong) ICMTitleSubTitleView *partAccounts;             //应收材料费
@property (nonatomic,strong) ICMTitleSubTitleView *amountAccounts;           //应收总金额
@property (nonatomic,strong) ICMTitleSubTitleView *labourRealPrice;          //实收工时费
@property (nonatomic,strong) ICMTitleSubTitleView *partRealPrice;            //实收材料费
@property (nonatomic,strong) ICMTitleSubTitleView *amountRealPrice;          //实收总金额
@property (nonatomic,strong) ICMTitleSubTitleView *labourDeduction;          //工时卷抵扣金额
@property (nonatomic,strong) ICMTitleSubTitleView *partDeduction;            //材料卷抵扣金额
@property (nonatomic,strong) ICMTitleSubTitleView *amountDeduction;          //去零金额
@property (nonatomic,strong) ICMTitleSubTitleView *accounts;                 //应收账款
@property (nonatomic,strong) ICMTitleSubTitleView *tax;                      //税款
@property (nonatomic,strong) ICMTitleSubTitleView *endAmount;                //最终金额
@property (nonatomic,strong) NSString *HQ_VW_CARD_FORM_DESC;                 //会员卡类型
@property (nonatomic,strong) NSString *HQ_VW_CARD_FORM;                      //会员卡名称
@property (nonatomic,strong) NSString *RMBAmount;                            //圆整金额
@property (nonatomic, strong) NSString *CARD_ID;                             //本地会员卡ID
@property (nonatomic, strong) NSString *HQ_VW_CARD_TYPE;                     //大众一家会员卡级别
@property (nonatomic, strong) NSString *MEMBER_PROPERTY_NAME;                //会员卡属性
@property (nonatomic, strong) NSString *verification;                        //获取的验证码
@property (nonatomic, strong) UIButton *verificationBtn;
@property (nonatomic, strong) ICMBalanceBasicInfoModel *model;

//界面值是否改变
@property (nonatomic, assign) BOOL hasViewValueChanged;

@property (nonatomic, weak) id<ICMBalanceInfoViewDelegate>delegate;

+ (instancetype)createICMBalanceInfoViewWithFrame:(CGRect)frame;

- (void)setBalanceInfoViewWithModel:(ICMBalanceBasicInfoModel *)model;

- (void)startTimer;

@end
